# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=pix
pkgver=1.1.1
pkgrel=0
pkgdesc="Image gallery manager built with MauiKit"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
url="https://invent.kde.org/kde/maui-pix"
license="GPL-3.0-or-later"
depends="mauikit"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtsvg-dev qt5-qtlocation-dev mauikit-dev ki18n-dev knotifications-dev kconfig-dev kio-dev attica-dev exiv2-dev"
source="https://invent.kde.org/maui/pix/-/archive/v$pkgver/pix-v$pkgver.tar.gz"
options="!check" # No tests available
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="b5dd4fbf8a155cf22f5959354be81f8506d667ae2b307f44d834b6511c79742064e5660f20809640533b248eadf089f483fe824020ccee50f3c07390e790df35  pix-v1.1.1.tar.gz"
